/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package domain;

/**
 *
 * @author Tich
 */
public class DomainController {
    
    private MineField mf;
    
    // TODO Make game chooseable using string option, already implemented in the factory
    public void createGame()
    {
        this.mf = MineFieldFactory.getInstance().createMineField("beginner");
    }
    
    public char[][] viewField()
    {
        if(mf == null)
            throw new IllegalArgumentException();
        return mf.getViewModel();
    }
    
    public void rightClickAction(int x, int y)
    {
        
    }
    
    public void leftClickAction(int x, int y)
    {
        
    }
}
